{extend name="base/main" /}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>二级分类列表</h5>
        </div>
        <div class="ibox-content">
            <div class="row row-lg">
                <div class="col-sm-12">
                    <div style="margin-bottom: 15px;">
                        <form class="form-horizontal m-t" action="{:url('Classification/info')}" method="get">
                        </form>
                    </div>
                    <div class="fixed-table-toolbar">
                        <div class="bars pull-left" style="margin-top:0px;">
                            <a href="{:url('Classification/increase',['id'=>$id])}" class="btn btn-sm btn-primary"><i class="fa fa-plus"></i>&nbsp;&nbsp;添加</a>
                        </div>
                    </div>
                    <div class="example-wrap">
                        <div class="example">
                            <table class="table table-hover">
                                <thead>
                                <tr>
                                    <th><input type="checkbox" class="i-checks check-all"></th>
                                    <th>ID</th>
                                    <th>父级分类</th>
                                    <th>分类名称</th>
                                    <th>图标</th>
                                    <th>排序</th>
                                    <th>是否显示</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="data" id="vo"}
                                <tr>
                                    <td><input type="checkbox" class="i-checks ids" name="id[]" value="{$vo.id}"/></td>
                                    <td>{$vo.id}</td>
                                    <td>{$vo.classification_name_id}</td>
                                    <td>{$vo.subclass_name}</td>
                                    <td><img src="{$vo.img}" height="30px" width="30px"></td>

                                    <td>{$vo.sort}</td>
                                    <td>{$vo.is_show}</td>
                                    <td>
                                        <a href="{:url('Classification/modify',['id'=>$vo['id']])}" class="btn btn-info btn-xs"><i class="fa fa-paste"></i> 编辑 </a>
                                        <a href="{:url('Classification/del',['id'=>$vo['id']])}" class="btn btn-info btn-xs"><i class="fa fa-paste"></i> 删除 </a>
                                    </td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </div>


                    </div>
                </div>
            </div>
            {$list->render()}
        </div>

    </div>

</div>
<script>
    $(".timestyle").click(function(){
        $(".timestyle").css("background-color","");
        $(this).css("background-color","orange");
        $(".soutime").val( $(this).data("id") );
    })


</script>



{/block}